// 练习4： 使用Maybe重写ex4不要有if语句

const fp = require("lodash/fp");
const { Maybe, Container } = require("./support");

const ex4 = function (n) {
  if (n) {
    return parseInt(n);
  }
};

const ex4Maybe = (value) => {
  return Maybe.of(value).map(parseInt);
};

console.log(ex4Maybe('44'));
